<div id="chartdiv" align="center">Chart will load here</div>
<script type="text/javascript">
  var chart = new FusionCharts("/charts/Pie2D.swf", "ChartId", "400", "300", "0", "0");
  chart.setXMLUrl('/game_runnings/chart_data/<%=@gencode%>');
  chart.render("chartdiv");
</script>